<?php

use Biz\service\trade\Order as sOrder;

class AddCommentAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $order_no = $this->getRequest()->getPost('order_no', '');
        $grade_num = $this->getRequest()->getPost('grade_num', 0);
        $content = $this->getRequest()->getPost('content', '');


        sOrder::addComment($order_no, $grade_num, $content, $this->uid);

        $this->setSuccess('successful');
    }
}